using System;
using System.Collections.Generic;
using System.Text;

using NUnit.Framework;

namespace XGAE.Framework
{
    [TestFixture]
    public class NUnitTest
    {
        [SetUp]
        protected void Init()
        {
        }

        [Test]
        public void TestTreeNode()
        {
            XGAE.Framework.Extensions.Taxonomy<int, string> t =
                new XGAE.Framework.Extensions.Taxonomy<int, string>();
            t.Load("Message.xml");

            Assert.AreEqual(1, t._root.Chields[0].Chields.Count);
            Assert.AreEqual(2, t._root.Chields[1].Chields.Count);
            Assert.AreEqual(1, t._root.Chields[3].Chields.Count);
            Assert.AreEqual(4, t._root.Chields.Count);
        }
    }
}
